package cn.lili.modules.order.order.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class OrderItemViewVO {
    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty("订单号")
    private String orderSn;
    @ApiModelProperty("买家-用户id")
    private String buyerId;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("商品id")
    private String goodsId;
    @ApiModelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty("支付金额")
    private Double flowPrice;
    @ApiModelProperty("状态: 已结算 未结算")
    private String profitSharing;
    @ApiModelProperty("直推佣金")
    private Double lowerCommiss = 0d;
    @ApiModelProperty("间推佣金")
    private Double lowerSubCommiss = 0d;

    @ApiModelProperty("订单数量")
    private Integer orderSum;

    @ApiModelProperty("下级成交数量")
    private Integer subOrderSum;

    @ApiModelProperty("直推店长")
    private String lowerCommissId;
    @ApiModelProperty("间推店长")
    private String lowerSubCommissId;
    @ApiModelProperty("收益金额")
    private Double castellanGreenScore = 0d;

    @ApiModelProperty("Order订单表主键")
    private String orderId;
    @ApiModelProperty("OrderFlow订单表主键")
    private String orderFlowId;

    @ApiModelProperty("地址id")
    private String addressIds;
}
